/**
 * 
 */
package edu.asu.sapa.ground.update;

import edu.asu.sapa.ground.State;
import edu.asu.sapa.utils.Priority;

public final class ConstraintWrapper {
	public Context c;
	public Constraint constraint;
	
	public ConstraintWrapper() {
		c = null;
		constraint = null;
	}
	public ConstraintWrapper(Context c, Constraint constraint) {
		this.c = c;
		this.constraint = constraint;
	}
	public final ConstraintWrapper set(Context c, Constraint constraint) {
		this.c = c;
		this.constraint = constraint;
		return this;
	}
	
	public final boolean holdsAt(State s) {
		return this.constraint.holdsAt(s,c);
	}
	public final boolean holdsBefore(State s) {
		return this.constraint.holdsBefore(s,c);
	}
}
